import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";


// 查询单位会员列表
export function listUnit(query) {
  return request({
    url: '/association/associationlist',
    method: 'get',
    params: query
  })
}

// 查询单位会员详情
export function unitdetail(id) {
  return request({
    url: '/association/unitdetail/' + id,
    method: 'get',
    params: id
  })
}

// 修改单位会员
export function updateUnit(data) {
  return request({
    url: '/association/unitupdate',
    method: 'put',
    data: data
  })
}


// 更改单位状态
export function updateStatus(data) {
  return request({
    url: '/association/unitstatus'+ id,
    method: 'put',
    data: data
  })
}